/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.robcash.apps.messagepopup.view.components;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author Rob
 */
public class SubscriptionFileFilter extends FileFilter {

    private static final String DESC = "Subscription Files (*.xml)";

    @Override
    public boolean accept(File f) {
        return f.isDirectory() || (f.isFile() && f.getName().endsWith(".xml"));
    }

    @Override
    public String getDescription() {
        return DESC;
    }

}
